<?php global $ubi?>
<div class="post clearfix">
	<div class="post-meta footer">
    	<div style="text-align:center">
        	<a href="index.php?view&type=user&userid=<?php echo $userObj->getUserID()?>">                            	
            	<img src="<?php echo $ubi['SERVER']['THUMBNAIL_PATH'];?>/<?php echo $imgUserObj?>" class="smallAvatar" />
            </a>                                    
            <a href="index.php?view&type=user&userid=<?php echo $userObj->getUserID()?>">
            	<?php echo $userObj->getUserName()?>
            </a>    
        </div>
        <?php
        	if (isset($_SESSION['userid']) && $_SESSION['userid'] && $_SESSION['userid'] != $userObj->getUserID()) { 
        ?>
        <p class="comment-link">
        	<a class="a_cursor" title="Gửi Tin Nhắn" onclick="$.sendMessage('<?php echo $userObj->getUserID()?>')">
            	Gửi Tin Nhắn
            </a>
            <br />
            <a class="a_cursor" title="Kết Bạn" onclick="$.makeFriend('<?php echo $userObj->getUserID()?>')">
            	Kết Bạn
            </a>                                
        </p>    
        <?php
        	}
        ?>    
        <p class="comment-link">
        	<a><?php echo $userObj->getPoints()?> Điểm</a>
		</p>
        <div class="social">
        	<strong>Cộng Đồng:</strong>
        </div>					
	</div>                        
    <div class="right">
    	<div class="header">
        	<h1>
        		<?php
        			if ($obj instanceof ProviderModel) {
        				$id = $obj->getProviderID(); 
        				$name = $obj->getProvider();
        				$type = 'provider';
        			} else {
        				$id = $obj->getItemID();     
        				$name = $obj->getItem();
        				$type = 'item';
        			}
        		?>
            	<a href="index.php?view&type=<?php echo $type?>&id=<?php echo $id?>">
            		<?php echo $name?>
                </a>
            </h1>                                
        </div>                            
        <div class="section entry">
			<a href="#">                
            	<img class="aligncenter size-full wp-image-331" src="<?php echo $ubi['SERVER']['THUMBNAIL_PATH'];?>/<?php echo $imgObj?>" height="203" width="400" />
            </a>
            <p>
	            <a class="comment_link"><?php echo $numCommentObj?> Comments</a>
	            <a class="comment_link"><?php echo $numFavObj?> Yêu Thích</a>
	            <a class="comment_link"><?php echo $obj->getPositiveRate()?> Điểm Cộng</a>
	            <a class="comment_link"><?php echo $obj->getNegativeRate()?> Điểm Trừ</a>
            </p>
            <p>
            	<?php echo substr(strip_tags($obj->getDescription()), 0, $ubi['SITE']['SHORT_DESCRIPTION']);?>                                    
            </p>
            <p>
            	<a href="index.php?view&type=<?php echo $type?>&id=<?php echo $id?>">Xem tiếp...</a>
            </p>
        </div>                                    
	</div>                       
</div>